//
//  SubmitOrderViewCell.m
//  BP_NewClient
//
//  Created by letv on 15/5/13.
//  Copyright (c) 2015年 normal. All rights reserved.
//

#import "SubmitOrderViewCell.h"

@implementation SubmitOrderViewCell

- (void)awakeFromNib {
    // Initialization code
//    NSString *mobiel = @"150******112";
    
//    14提交订单-触发
//    14提交订单-未触发
}


- (void)resetPayBtn{
    [self.alixPayBtn setBackgroundImage:[UIImage imageNamed:@"14提交订单-未触发"] forState:UIControlStateNormal];
    [self.weChatBtn setBackgroundImage:[UIImage imageNamed:@"14提交订单-未触发"] forState:UIControlStateNormal];

}

- (IBAction)payBtnSelect:(id)sender{
    UIButton *btn = (UIButton *)sender;
    [self resetPayBtn];

    if ([btn isEqual:self.alixPayBtn]) {
        [self.alixPayBtn setBackgroundImage:[UIImage imageNamed:@"14提交订单-触发"] forState:UIControlStateNormal];
        _payMethod_Block(@"200");
    }else{
        [self.weChatBtn setBackgroundImage:[UIImage imageNamed:@"14提交订单-触发"] forState:UIControlStateNormal];
        _payMethod_Block(@"500");
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}

@end
